/**  
* @Title: PurchaseService.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年4月8日  
*/
package com.fortune.rainshine.service.service;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.model.service.OrderModel;
import com.fortune.rainshinecommon.model.service.StockModel;

/**  
* @ClassName: PurchaseService  
* @Description: TODO(产品采购管理)  
* @author 张鑫
* @phone 17561783855
* @date 2019年4月8日  
*    
*/
@FeignClient(value = "rain-shine-service",configuration = FeignConfig.class)
@RestController
public interface PurchaseService {
	@PostMapping(value = "/purchase/order")
	MsgModel order(OrderModel model);

	@PostMapping(value = "/purchase/products")
	List<StockModel> getStockProducts(String shopId);
}
